import Cookies from 'js-cookie';

const TokenKey = 'miva-work-passport';

export function getToken() {
  return Cookies.get(TokenKey);
}

export function setToken(token) {
  return Cookies.set(TokenKey, token, { domain: 'miva.work' });
}

export function removeToken() {
  return Cookies.remove(TokenKey);
}

export function getFromPath() {
  return Cookies.get('miva-work-history');
}
